<?php echo CHtml::beginForm(); ?>

<?php echo CHtml::errorSummary($model); ?>

<?php

echo CHtml::activeHiddenField($model, 'project_id') . "\n";
echo CHtml::activeHiddenField($model, 'id') . "\n";

?>

<h2><?php echo Yii::t('project', 'End of meeting'); ?></h2>
<?php if (Yii::app()->user->hasFlash('meeting')) { ?>
<div id="flashMsg" class="infoMsg">
<?php echo Yii::app()->user->getFlash('meeting'); ?>
</div>
<?php } ?>
<div class="yiiForm" id="next_objectives">
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'next_date'); ?>
<?php 
$attribute = "next_date";
$opts = array();
CHtml::resolveNameId($model, $attribute, $opts);
$opts['size'] = 12;
$this->widget('application.widgets.CJuiDateTimePicker', array (
	'name' => $opts['name'],
	'value' => ($model->next_date != null ? $model->next_date->format(Constants::DISPLAY_DATETIME_FORMAT) : DateUtils::today()->format(Constants::DISPLAY_DATE_FORMAT)),
	'options' => Constants::$JuiDatePickerOptions,
	'htmlOptions' => $opts,
'language' => 'fr'
));
?> (dd/mm/yyyy)
</div>

<div class="simple" style="display:block;">
<?php echo CHtml::activeLabelEx($model,'meeting_comment'); ?><br />
</div>
<?php 
$this->widget('application.extensions.ckeditor.CKEditorWidget',array(
	"model"=>$model,
	"attribute"=>'meeting_comment',
	"ckEditor"=>Yii::app()->basePath."/../ckeditor/ckeditor.php",
    "ckBasePath"=>Yii::app()->baseUrl."/ckeditor/",
		"config" => array(
		"height"=>"400px",
		"width"=>"100%",
		"toolbar"=> Constants::ckEditorToolbars(),
	),
	"defaultValue" => $model->meeting_comment,
));
?>


</div><!-- yiiForm -->

<div class="action">
<?php echo CHtml::submitButton(Yii::t('views', '< Previous'), array('name' => 'prev_button')); ?>
<?php echo CHtml::submitButton(Yii::t('views', 'Save'), array('name' => 'next_button')); ?>
</div>

<?php
echo CHtml::endForm();
$cs = Yii::app()->clientScript;
?>
